package com.dream.technology.db.entity;

import com.dream.technology.mybatisUtils.CreateTime;
import com.dream.technology.mybatisUtils.UpdateTime;

import java.util.Date;

public class RcFlowItem {
    private Long id;

    private Long flowId;

    private Long childItemId;

    private String childItemName;

    /**
     * 流程中的各项类型 0:用户标签 1：规则 2：规则集 3：子流程，没有动作 策略
     */
    private Integer childItemType;

    /**
     * 执行动作:0：执行下一步 1：直接拒绝
     */
    private Integer action;

	@CreateTime
    private Date createDate;

	@UpdateTime
    private Date updateDate;

    private String itemAlias;

    private Boolean status;

    private Boolean enabled;

    /**
     * 策略 0 直接拒绝 1 执行下一步
     */
    private Integer strategy;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getFlowId() {
        return flowId;
    }

    public void setFlowId(Long flowId) {
        this.flowId = flowId;
    }

    public Long getChildItemId() {
        return childItemId;
    }

    public void setChildItemId(Long childItemId) {
        this.childItemId = childItemId;
    }

    public String getChildItemName() {
        return childItemName;
    }

    public void setChildItemName(String childItemName) {
        this.childItemName = childItemName == null ? null : childItemName.trim();
    }

    public Integer getChildItemType() {
        return childItemType;
    }

    public void setChildItemType(Integer childItemType) {
        this.childItemType = childItemType;
    }

    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getItemAlias() {
        return itemAlias;
    }

    public void setItemAlias(String itemAlias) {
        this.itemAlias = itemAlias == null ? null : itemAlias.trim();
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    public Integer getStrategy() {
        return strategy;
    }

    public void setStrategy(Integer strategy) {
        this.strategy = strategy;
    }
}
